{"version":3,"file":"videojs-playlist-dev.min.js","sources":["videojs-playlist-dev.js"],"names":["f","exports","module","define","amd","g","this","self","window","global","videojsPlaylist","e","t","n","r","s","o","u","a","require","i","Error","code","l","call","length",1,"Object","defineProperty","value","_interopRequireDefault","obj","__esModule","default","_videoJs","_videoJs2","defaults","thumbnailSize","playlistItems","hideIcons","upNext","hideSidebar","mobile","player","undefined","currentIdx","videos","players","playlistsElemens","playlistsElemen","createVideoElement","player_id","idx","title","thumbnail","videoElement","document","createElement","videoTitle","className","setAttribute","innerText","appendChild","videoTitleText","onclick","ev","parseInt","target","getAttribute","playVideo","onPlayerReady","options","id_","playlist","toString","replace","items","createElements","updateElementWidth","el","map","video","prevBtn","onPrevClick","controlBar","insertBefore","playToggle","nextBtn","onNextClick","volumeMenuButton","on","createPlayingNext","addClass","nextVideo","parentNode","id","previousVideo","resize","p","itemWidth","playerId","playerWidth","offsetWidth","playerHeight","offsetHeight","itemHeight","Math","floor","youtube","$","newSize","styleTagId","style","getElementById","def","round","getElementsByTagName","firstChild","textContent","createTextNode","addEventListener","event","autoPlay","querySelectorAll","classList","add","remove","paused","pause","error","type","src","wmvPlayerId","wmvPlayerDiv","wmvConfig","file","image","wmvPlayer","jeroenwijering","Player","removeChild","vimeos","getElementsByClassName","curVideoId","poster","options_","autoplay","play","_this","ready","mergeOptions","plugin"],"mappings":"CAMA,SAAUA,GACT,SAAUC,WAAU,gBAAmBC,UAAS,YAChD,CACCA,OAAOD,QAAQD,QAEX,UAAUG,UAAS,YAAYA,OAAOC,IAC3C,CACCD,UAAUH,OAGX,CACC,GAAIK,EACJ,UAAUC,QAAO,YACjB,CACCD,EAAEC,SAEE,UAAUC,QAAO,YACtB,CACCF,EAAEE,SAEE,UAAUC,UAAS,YACxB,CACCH,EAAEG,WAEE,UAAUC,UAAS,YACxB,CACCJ,EAAEI,OAEHJ,EAAEK,gBAAkBV,OAEnB,WAEF,GAAIG,GAAOD,EAAOD,CAClB,OAAO,SAAUU,GAAEC,EA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